package com.adrian.service;

import com.adrian.pojo.User;

import java.util.List;

/**
 * @Auther: Adrian
 * @Date: 2020/3/16 20:03
 * @Description:
 */
public interface UserService {
    /**
     * 根据ID查用户
     * @param id
     * @return
     */
    User queryById(Integer id);

    /**
     * 根据ID删除用户
     * @param id
     * @return
     */
    int deleteById(Integer id);

    /**
     * 查询用户
     * @return
     */
    List<User> queryUsers();
}
